jQuery(document).ready(function(){
	$j("#type").bind("click", function(){
	
	   var typevalue = $j("#type").attr("value");
	
	   if ( typevalue == "standalone" )
	   {
	          $j("#parent").attr("disabled", "disabled");
	
	   }else if ( typevalue == "parent" )
	   {
	          $j("#parent").attr("disabled", "");
	   }
	});
	
});